from django.http import JsonResponse
from calc.models import RecyclingInfo, Server
from system.models import Department
from common.page_util import page_util
import datetime, time
from django.db import connection
import json
import uuid


def recycle_page(request):
    data = json.loads(request.body)
    page = data['page']
    limit = data['limit']
    params = data['params']
    depart_id = params['departId']
    state = params['link']
    server_list = Server.objects.all()
    return page_util(server_list, page, limit)


